package com.woniuxy.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.entity.DocsUpload;
import com.woniuxy.service.DocsUploadService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;


/**
 * @author lawrence Z
 */
@RestController

public class DocsUploadController{

    @Resource
     DocsUploadService docsUploadService;

    @PostMapping("/uploadFile")
    public AjaxResult uploadFile(@RequestBody (required = false)DocsUpload docsUpload){
        return docsUploadService.uploadFile(docsUpload);
    }

}
